package cn.funeralobjects.asms.entity;

import cn.funeralobjects.asms.converter.SignStatusConverter;
import cn.funeralobjects.common.annotations.Code;
import cn.funeralobjects.common.annotations.Name;
import cn.funeralobjects.utils.aliyun.sms.enums.SignStatus;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;

/**
 * Entity of SmsSign
 *
 * @author FuneralObjects
 * Create date: 2020/5/31 9:09 PM
 */
@Data
@Accessors(chain = true)
@Table(name = "t_sms_sign")
@Entity
public class ESmsSign {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    @Code
    private String code;
    @Name
    private String signName;
    private String prodResCode;
    @Convert(converter = SignStatusConverter.class)
    private SignStatus status;
    private String createDate;
    private String reason;
}
